package com.bbcare.cp.plat.entity.msg;

import java.io.Serializable;
import javax.persistence.Entity;

/**
 * @name: pt_synchbusi_msg 实体类
 * @author: DemonLee
 * @createTime: 2018-07-12 11:23:15
 * @description: 业务消息同步接口表
 * @modify:
 *
 */
@Entity
public class PtSynchBusiMsg implements Serializable {
    private static final long serialVersionUID = 1L;

    // 消息流水id
    private String id;
    // 队列患者id
    private String userId;
    // 租户患者id
    private String teUserId;
    // 平台患者id
    private String clUserId;
    // 队列id
    private String queueId;
    // 创建时间
    private String createTime;
    // 更新时间
    private String updateTime;
    // 创建者id
    private String createAuthor;
    // 更新者id
    private String updateAuthor;
    // 操作流水
    private String updateAccept;
    // 项目id
    private String projectId;
    // 租户id
    private String tenantId;
    // 0未处理，1处理成功(入历史表)，2处理失败, 3处理中
    private Integer dealStatus;
    // 异常信息
    private String errMsg;
    // 操作编码
    private String opCode;
    // 渠道类型，详见字典表bs_channeltype_dict
    private String channelType;
    // 渠道id
    private String channelId;
    // 消息类型,1 ehr，2待扩展
    private String msgType;
    // 消息内容
    private String msgData;
    // 错误编码
    private String errCode;
    // 接收消息时间
    private String receiveTime;
    // 系统域代码
    private String sysDomain;
    // 调用方法类型，1消息队列，2HSF，3ESB/CSB，待扩展
    private String methodType;
    // 调用方法名称
    private String methodName;
    // 调用方法版本，为空则使用默认版本
    private String methodVersion;
    // 优先级，升序排列
    private Integer seqNo;
    // 分区码，程序提取记录时使用（保证同一用户在一个线程上处理）
    private Integer patitionCode;
    // 服务器分区序号，不同服务器扫描不同记录，保证同一用户在一台服务器上处理
    private Integer partNo;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserId() {
        return userId;
    }

    public void setTeUserId(String teUserId) {
        this.teUserId = teUserId;
    }

    public String getTeUserId() {
        return teUserId;
    }

    public void setClUserId(String clUserId) {
        this.clUserId = clUserId;
    }

    public String getClUserId() {
        return clUserId;
    }

    public void setQueueId(String queueId) {
        this.queueId = queueId;
    }

    public String getQueueId() {
        return queueId;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setCreateAuthor(String createAuthor) {
        this.createAuthor = createAuthor;
    }

    public String getCreateAuthor() {
        return createAuthor;
    }

    public void setUpdateAuthor(String updateAuthor) {
        this.updateAuthor = updateAuthor;
    }

    public String getUpdateAuthor() {
        return updateAuthor;
    }

    public void setUpdateAccept(String updateAccept) {
        this.updateAccept = updateAccept;
    }

    public String getUpdateAccept() {
        return updateAccept;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setDealStatus(Integer dealStatus) {
        this.dealStatus = dealStatus;
    }

    public Integer getDealStatus() {
        return dealStatus;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setOpCode(String opCode) {
        this.opCode = opCode;
    }

    public String getOpCode() {
        return opCode;
    }

    public void setChannelType(String channelType) {
        this.channelType = channelType;
    }

    public String getChannelType() {
        return channelType;
    }

    public void setChannelId(String channelId) {
        this.channelId = channelId;
    }

    public String getChannelId() {
        return channelId;
    }

    public void setMsgType(String msgType) {
        this.msgType = msgType;
    }

    public String getMsgType() {
        return msgType;
    }

    public void setMsgData(String msgData) {
        this.msgData = msgData;
    }

    public String getMsgData() {
        return msgData;
    }

    public void setErrCode(String errCode) {
        this.errCode = errCode;
    }

    public String getErrCode() {
        return errCode;
    }

    public void setReceiveTime(String receiveTime) {
        this.receiveTime = receiveTime;
    }

    public String getReceiveTime() {
        return receiveTime;
    }

    public void setSysDomain(String sysDomain) {
        this.sysDomain = sysDomain;
    }

    public String getSysDomain() {
        return sysDomain;
    }

    public void setMethodType(String methodType) {
        this.methodType = methodType;
    }

    public String getMethodType() {
        return methodType;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodVersion(String methodVersion) {
        this.methodVersion = methodVersion;
    }

    public String getMethodVersion() {
        return methodVersion;
    }

    public Integer getSeqNo() {
        return seqNo;
    }

    public void setSeqNo(Integer seqNo) {
        this.seqNo = seqNo;
    }

    public Integer getPatitionCode() {
        return patitionCode;
    }

    public void setPatitionCode(Integer patitionCode) {
        this.patitionCode = patitionCode;
    }

    public Integer getPartNo() {
        return partNo;
    }

    public void setPartNo(Integer partNo) {
        this.partNo = partNo;
    }
}
